package com.heima.behavior.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author WYZ
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ApCollectionBehavior extends Model<ApCollectionBehavior> {

private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 实体id
     */
    private Integer entryId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 点赞内容类型0-文章 1-动态
     */
    private Integer type;

    /**
     * 收藏时间
     */
    private Date collectionTime;

    /**
     * 发布时间
     */
    private Date publishedTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
